home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / sharew / packer / lharc299 / doc / manual.eng < prev    next >
Encoding:
Text File  |  1994-01-06  |  53.3 KB  |  1,321 lines

  1. THE EXPLORER'S GUIDE TO LHarc
  2.  
  3. It sometimes seems that versions of LHarc proliferate like rabbits, while
  4. documentation, especially in English, is as rare as hen's teeth and what
  5. there is is neither up to date nor comprehensive. This guide attempts to
  6. throw some light on the subject and to provide a comprehensive guide to
  7. LHarc 2.01, now the most commonly available version, with additional
  8. information on the newest version 2.99 (junior).
  9.  
  10. CONTENTS
  11.  
  12.         1.0 BACKGROUND
  13.         2.0 VERSIONS
  14.         3.0 GETTING STARTED WITH VERSION 2.01
  15.         4.0 USING LHarc 2.01
  16.         5.0 PARAMETER USAGE
  17.         6.0 COMMANDS
  18.         7.0 TEMPORARY FILES
  19.         8.0 SHELLS AND COMMAND LINE INTERFACES
  20.         9.0 VERSION 2.20 and newer
  21.  
  22.  
  23. 1.0 BACKGROUND
  24.  
  25. LHarc has its origins in the world of MSDOS and UNIX and has been ported to
  26. the ST by people like Jon Webb, Thomas Quester and Haruyasu Yoshizaki who
  27. have put their versions in the public domain. Files are compressed using
  28. the Lempel-ziv and Huffman algorithms which give it its name and file
  29. extender (lzh) The archives themselves are portable across platforms at
  30. least in principle; it is the archiving utility programmes that have to be
  31. ST specific.
  32.  
  33. LHarc set out to produce more compact archives than ARC, at the expense of
  34. being slower. New versions of both have changed the picture to some extent;
  35. in particular, new versions of LHarc are much faster. In the PC world, and
  36. now in that of the ST, Zip is challenging LHarc's position; it is fast,
  37. compacts well and on the ST offers a user-friendly interface, allowing
  38. files for archiving or extraction to be picked from a list and repeat
  39. operations to be carried out without leaving the programme.
  40.  
  41. 2.0 VERSIONS
  42.  
  43. There are three compression algorithms in the LHarc family corresponding to
  44. three groups of programmes: identifying which you have is not always easy.
  45.  
  46. 2.1     LARC
  47. This does not use huffman encoding hence the missing h; it produces larger
  48. files but packs and unpacks much faster than LHarc (only in versions <= 2.01).
  49. This method is used in PFXPAK, a shareware programme packer by Thomas Quester.
  50. The programme LARC itself is obsolete as LHarc 2.01 offers this compression
  51. method with the /l switch.
  52.  
  53. 2.2     lh1
  54.  
  55. The original lh1 algorithm is used by Jon Webb's LHarc.PRG (current
  56. version, .51 or 0.6), a TOS programme which obligingly presents a list of
  57. commands with a command line at the bottom. The list is comparatively
  58. simple with only six switches:-
  59.  
  60. ------------------------------------------------------------------------------
  61. LHarc-ST, Archive utility, Version 0.51β, compiled on 17/11/89 at 15:12:58
  62.  
  63.   Usage: LHarc command archive [filenames]
  64. < Commands >
  65.      a - Add file(s) to archive          p - Extract to printer
  66.      m - Move file(s) to archive         l/v - Short/Verbose list of archive
  67.      e/x - Extract file(s) from archive  d - Delete file(s) in archive
  68.      i - Extract with inquiry            r - Rename file in archive
  69.      s - Extract to screen               t - Test archive integrity
  70. < Switches >
  71.      h - Hold after command              b - Retain backup copy of archive
  72.      o - Overwrite existing files        n - No compression (store only)
  73.      f - Floppy/TurboDos check off       c - Add comments
  74. ------------------------------------------------------------------------------
  75.  
  76. Thomas Quester's LHarc.ttp version 1.316 is regarded as the definitive
  77. programme for the lh1 process. Its usage is similar to version 2.01.
  78.  
  79. 2.3     lh5
  80.  
  81. The newer, faster lh5 algorithm is supported by Thomas Quester's 2.01,
  82. usually named LHarc.TTP or LHAR201?.TTP, currently at version l. This uses
  83. lh5 by default, but extracts either lh1 or larc without question and will
  84. pack them if the right switches are used.
  85.  
  86. The newest arrival on the scene, in January 94, is Lharc 2.99 by Christian
  87. Grunenberg and others, based on 2.01l and using the same commands but with
  88. additional switches and the more extensive UNIX wildcards. It is
  89. spectacularly faster. The following timings were for packing and unpacking
  90. the package of programme and text files, totalling 261772 bytes, by which
  91. LHarc 2.20 was distributed.
  92.  
  93.                                 Time mins:secs
  94.                                 Pack    Unpack  Size
  95.                                 ----------------------
  96.         STZIP("deflate best")   1:32    18      118763
  97.  
  98.         LHarc 2.01              2:06    35(33)  120925
  99.  
  100.         LHarc 2.99              1:20    15(14)  120901
  101.  
  102. Source files and the archive were both on a ramdisk and timings were
  103. taken from clicking ok from the command line or the STZIP screen using a
  104. desktop clock.
  105.  
  106. Times in brackets are for unpacking archives packed with version 2.99, the
  107. others for archives packed with 2.01; whether the difference is just the
  108. result of timing errors I can't say.
  109.  
  110. Many of the new switches are about naming files and seem intended to cope
  111. with MiNT/ MultiTOS conventions. Some of the changes are drastic enough to
  112. make it inadvisable to use existing shells. Version 2.99 junior corrects a
  113. few bugs and adds some additional features. Anyway - use LHarc 2.99 and its
  114. built in GEM-interface!
  115.  
  116. The remainder of the text is about using Version 2.01; variations for 2.20
  117. and newer versions are appended at the end.
  118.  
  119. 3.0 GETTING STARTED WITH VERSION 2.01
  120.  
  121. Documentation for this programme consists of a German manual (MAN.DEU) an
  122. English manual (MAN.ENG), not as comprehensive as MAN.DEU, the README and
  123. LIESMICH files containing installation instructions and the revision
  124. history and LHarc.DOC, a brief introduction in German. There is also
  125. ALGORITHM.DOC explaining the compression methods used.
  126.  
  127. Like many PD authors Thomas Quester asks that his programme should always
  128. be distributed with documentation. He goes to greater lengths than most,
  129. distributing LHarc as a packed programme (using PFXPAK) with the manuals
  130. (MAN.DEU, or if you are very lucky MAN.ENG) appended in compressed form - a
  131. combination of packed file and archive. PD libraries and Bulletin Boards
  132. often break this up and distribute the files separately with or without the
  133. manual. I have never knowingly seen this file though I have a much larger
  134. one of the same kind which came with my registered version of PFXPAK.  If
  135. your LHarc seems rather large it may be one of these compound files. It
  136. runs in the normal way as an archiving programme, but will put on screen
  137. the message:
  138.  
  139. LHarc beinhaltet noch einige Dateien.   Auspacken mit  x -rm LHarc.TTP
  140.         or
  141. LHarc könnte noch einige Dateien enthalten. Auspacken mit Paramter LHarc.TTP
  142.  
  143.         This means:
  144.  
  145. LHarc contains some files.              Unpack with   x -rm LHarc.TTP
  146.  
  147. meaning that the files can be unpacked, to the current directory, by giving
  148. LHarc its own name as a parameter.
  149.  
  150. The LIESMICH or README file if you have it, contains instructions for
  151. producing a smaller, working copy of the programme alone without this
  152. message: however it is possible to delete the files still leaving the
  153. message, so nothing can be taken for granted.
  154.  
  155. 4.0 USING LHarc 2.01
  156.  
  157. LHarc is a ttp programme, presenting that daunting empty parameter box when
  158. run from the desktop. It carries out one command at a time then exits. If
  159. you make a mistake you have to type the command again; it keeps no history
  160. of the commands given. No more than 38 characters may be typed on the
  161. command line. Long chains of switches or extended path names quickly eat
  162. this up.
  163.  
  164. If you want to make repeated use of the programme, it is worth copying it
  165. to a ramdisk for faster operation, particularly if you have no hard drive:
  166. this will also enable you to keep data and archive disks in the floppy
  167. drive. It may be worthwhile creating the archive on ramdisk if yours is big
  168. enough, particularly if you are carrying out repeated alterations resulting
  169. in the archive being constantly updated.
  170.  
  171. If no parameters are passed it displays the following on pressing <return>:
  172.  
  173.  
  174. LHarc Version 2.01l (Atari ST)  Copyright (c) Haruyasu Yoshizaki, 1988-89.
  175.                                          Optimiert von Thomas Quester    1989-91
  176. ================================================================        03.07.91  ===
  177.                 <<< High-performance file-compression program >>>
  178. ===============================================================================
  179.   Aufruf: LHarc  [<Kommando>] [{{/|-}{<Schalter>[-|+|2|<Option>]}}...] <archive>
  180.                  [{<Laufwerk>:}|{<Hauptvezeichnis>\}] [<Pfad> ...]
  181. -------------------------------------------------------------------------------
  182. <Kommando>
  183.      a: Dateien an Archiv anfügen       u: Dateien im Archiv erneuern
  184.      f: Dateien anfügen, wenn neuer     m: Datei in das Archiv 'moven'
  185.      d: Dateien aus Archiv löschen    e,x: Dateien aus Archiv extrahieren
  186.      p: Dateien aus Archiv anzeigen   l,v: Dateiliste des Archivs
  187.      t: Archiv testen                   c: Dateien für AFX komprimieren
  188.   <Schalter>
  189.      r: Mit Ordnern packen/entpacken    w: Arbeitsdirectory bestimmen
  190.      x: Erweitere Dateinamen            m: Beantworte alle Fragen mit Ja
  191.      p: Unterscheide Ordnernamen        c: Kein Vergleich des Dateidatums
  192.      a: Erlaube bel. Dateiattribute     v: Dateien mit anderem Prg ansehen
  193.      n: Keinen Prozessindikator zeigen  h: Warte auf Tastendruck vor exit
  194.      t: Archivdatum setzen              y: Nur dateien mit Archive bit packen
  195.      b: Wie y, Archivbit wird gelöscht  l: Erzeuge Larc-kompatibles Archiv
  196.      d: Unterdrücke ALLE Ausgaben       o: Erzeuge 1.13-kompatibles Archiv
  197.      u: Ungepackt speichern             k: Erzeuge Kompatible Header
  198.      e: Mit Kommentaren archivieren     5: Zwinge lh5-Archiv
  199.      s: Wandle \ in / um
  200. ===============================================================================
  201.   (Eine genaue Anleitung finden Sie im User-Manual.)
  202.   Wenn Sie Yoschi erreichen wollen: Nifty-Serve  PFF00253
  203.                                         oASCII-pcs       pcs02846
  204.   Wenn Sie Thomas Quester  UUCP the.fawn@mcshh.hanse.de
  205.   erreichen wollen:        Maus Thomas Quester @ HH
  206.                            Tel./BTX (040) 720 54 31
  207.  
  208.  
  209.  
  210. The line:
  211.  
  212. Aufruf: LHarc  [<Kommando>] [{{/|-}{<Schalter>[-|+|2|<Option>]}}...] <archive>
  213.                  [{<Laufwerk>:}|{<Hauptvezeichnis>\}] [<Pfad> ...]
  214.  
  215. is a concise summary of the syntax of the command line; in English it is
  216. almost as cryptic:
  217.  
  218. Usage LHarc [<command>] [{{/|-}{<switch>[-|+|2|<option>]}}...] <archive_name>
  219.                 [{<drive_name>:}|{<home_directory_name>\}] [<path_name>  ...]
  220.  
  221.         LHarc used only from a command line or another programme;
  222.                 do not use when run from the desktop
  223.         <>      parameter name
  224.         []      optional parameter
  225.         |       (shifted \) alternative
  226.         {}
  227.  
  228. Parameters must be separated by spaces; the only essential parameter is the
  229. archive name. LHarc will use default values for all the others. The order
  230. must be as shown except that switches can be placed anywhere after the
  231. command. LHarc is insensitive to case except in switches which must be
  232. lower in version 2.01; 2.20 and newer versions use upper case switches as
  233. well; it also insists on switches immediately following the command.
  234.  
  235. For clarity we shall call the files to be archived "source" files, lzh
  236. files "archive" files, and the files in the archive "archived" files.
  237.  
  238. Hitting 'Ctrl-C' at any time will abort LHarc's current operation and
  239. return you to the desktop. It may leave temporary files lying around if you
  240. do so. 'Ctrl-S'and 'Ctrl-Q' will pause and resume operations, which is
  241. useful for reading scrolled listings.
  242.  
  243. (#9.1), etc refers to changes in versions newer than 2.20 described in
  244. section 9.0.
  245.  
  246. 5.0     PARAMETER USAGE
  247.  
  248. 5.1     <Command>:
  249.  
  250. A command tells LHarc what to do. It must be the first parameter given and
  251. only one is allowed on each command line. If none is given, extraction,
  252. "x",  is implied. If a command is placed other than at the beginning of the
  253. line, LHarc will extract files, interpreting the command as some other
  254. parameter, eg an archive called "a".
  255.  
  256. 5.2     <Switch>:
  257.  
  258. Switches modify the action of commands or the way the LHarc runs. They are
  259. identified by the delimiter "/" or "-" and may be placed anywhere except
  260. before a command. (#9.1)
  261.  
  262. Some switches are automatically set by commands:
  263.         the command "v" sets the switch "/x" for extended file names;
  264.         or other switches - "/r" sets "/x3".
  265.  
  266. The switch letter is a toggle (#9.1) which reverses the current state.The
  267. default is off but this may have been altered:
  268.  
  269.         1) by a previous switch in the same command line, whether
  270.         written or implied by another switch or command,
  271.         or
  272.         2) by an environment variable set by a shell programme or cli.
  273.  
  274. Thus    /xx     sets and unsets extended filenames;
  275.         /rx     sets LHarc to search folders then tells it not to use
  276.                 extended filenames
  277.  
  278. "+" or "-" following the switch set it unambiguously on or off; if in
  279. doubt use these. Several switches may be selected by typing them
  280. continously after the delimiter: eg /rhc. Otherwise type / before each
  281. switch. /w and /v must be at the end of such sequences as they may take
  282. further arguments.
  283.  
  284. 5.3 SELECTION PARAMETERS
  285.  
  286. The remaining parameters concern identifying files and paths. LHarc will
  287. look for a file in the current drive and directory unless its name is
  288. preceded by a drive letter and/or path.  In GEM terms the current directory
  289. is the active window on the desktop from which programmes are normally
  290. launched.
  291.  
  292. [If you are using a command line interface this will be familiar; if you
  293. are using an archive shell you will never be aware of it at all.]
  294.  
  295. You can run a programme from an inactive window using the right, or
  296. cinderella, button:
  297.  
  298.         Open the programme window containing LHarc.
  299.         Open the window you want to make current - most usefully the one
  300.          where files will be read from or written to - making this the
  301.          active window;
  302.         Move the mouse to the programme window;
  303.         Holding down the right button, double click with the left.
  304.  
  305. You may also specify a file not in the current directory by typing in the
  306. drive and/or pathname on the command line:
  307.  
  308.  The conventions of MSDOS apply:
  309.  
  310.         D:              drive "D"
  311.         \path\          path beginning at the root of the current or
  312.                         specified drive
  313.         path\           path starting from the current directory or
  314.                         from the last used directory of the specified
  315.                         drive.
  316. Thus:
  317.         D:arc           the archive "arc" in the last used directory
  318.                         of drive D:
  319.         \arc            the archive "arc" in the root directory of the
  320.                         current drive
  321.         path\arc        the archive "arc" in the subdirectory "path"
  322.                         of the current window.
  323.  
  324.  
  325. 5.4     <ARCHIVE>:
  326.  
  327. This is the only essential parameter: given an archive name,
  328. Lharc will unpack all the files in the named archive to the current
  329. directory.
  330.  
  331. The parameter must include the archive name; the extender .lzh is implied
  332. and need not be written unless the archive has some other extender or
  333. has a single letter name which could be confused with a command. Self-
  334. extracting files with .TOS extenders can be viewed or extracted if the
  335. extender is given. Only one archive parameter is allowed and LHarc can,
  336. naturally, write to only one archive at once, which must be given a full
  337. name. However, LHarc will read or extract from multiple archives identified
  338. by wildcards: eg "a*" means all lzh files beginning with "a" and "*" means
  339. all archives in the current or specified directory.
  340.  
  341.           LHarc e * *.c
  342.  
  343.         Extracts all files with extension .C from all archives in
  344.         the current directory.
  345.  
  346.  
  347. The next two parameters, <DRIVE/HOME DIRECTORY> and <PATH> are both
  348. concerned with the location and selection of files (not archives) to be
  349. archived or read from archive. Without either parameter LHarc will read
  350. files from and write them to the current directory and will select all
  351. files as though *.* had been typed. The distinction between these parameters
  352. can be confusing.
  353.  
  354. 5.5     <DRIVE/HOME DIRECTORY>:
  355.  
  356. This parameter substitutes a new directory for reading and writing files in
  357. place of the current one; it contains a drive letter followed by a colon
  358. and/or a path specification ending with  \.  Leading "\"s follow the same
  359. convention as described above. If the final ":" or "\" is omitted the
  360. parameter will be read as <PATH>. The path defined here will not be
  361. included in extended file names. (#9.3)
  362.  
  363. 5.6 <PATH>:
  364.  
  365. This is a misleading name as there may be no path element at all; if
  366. used at all the parameter must contain a filename or wildcard
  367. specification, to identify the file(s) to be archived, listed or extracted.
  368. A path specification is used:
  369.  
  370. 1)      in archiving, to identify the directory where files are to be
  371.         found: unlike the <home> parameter, the path will be included in
  372.         extended filenames. If a drive name is specified it will override
  373.         any path set in the <HOME> parameter, as will a leading \.  A file
  374.         archived with a leading \ will be extracted to the root directory,
  375.         regardless of any <home> setting, unless the /p switch is set.
  376.  
  377. 2)      in reading archives, to identify the files to be selected.
  378.  
  379. If no file name or specifier is used after a '\' the parameter will be read
  380. as <HOME>.  This and <switch> are the only parameters which can be repeated
  381. on the same command line.
  382.  
  383. EXAMPLES: " ~ " = space
  384.  
  385.         a ~ path1\arc ~ a:path2\ ~ path3\*.prg ~ *.ttp ~ /hr
  386.  
  387. <command>       a               add to or create
  388. <archive>       ~ path1\arc     archive "arc" in the subdirectory "path "
  389.                                 of the current window;
  390. <home>          ~ a:path2\      look for files in the current directory of
  391.                                 drive A: ignore this path name in extended
  392.                                 filenames;
  393. <path>          ~ path3\*.prg   archive all "prg" files in the
  394.                                 subdirectory "path" of the directory just
  395.                                 set;
  396. <path>          ~ *.ttp         and all "ttp" files in the home directory;
  397. <switch>        ~ /h            hold the screen on finishing (so you can
  398.                                 see the error message)
  399.                   r             and search subdirectories in the specified
  400.                                 file path saving files with with extended
  401.                                 file names.
  402.  
  403.  
  404. If the third space is omitted,
  405.  
  406.        a   ~ path1\arc ~ a:path2\path3\*.prg ~ *.ttp ~ /hr
  407.   <command>  <archive>   <path>                <path>  <switch>
  408.  
  409. the third parameter becomes a <path>; the same *.prg files will
  410. be selected but saved with a longer pathname: "path2\path3\*.prg". The
  411. following parameter will now archive all ttp files on the current directory
  412. - usually the one where LHarc is.
  413.  
  414. If you make "a:path2\" the active window, and run LHarc from another window
  415. using the right mouse button, you can omit the <home> command saving some
  416. space on the command line
  417.  
  418.         a ~ path1\arc ~ path3\*.prg ~ *.ttp ~ /hr
  419.   <command>  <archive>  <path>        <path>  <switch>
  420.  
  421. Alternatively, with path2's window open, though not necessarily
  422. active, provided LHarc.ttp is not on the same drive as path2, then:
  423.  
  424.         a ~ path1\arc ~ a:path3\*.prg ~ a:*.ttp ~ /hr
  425.   <command> <archive>   <path>          <path>    <switch>
  426.  
  427. will direct LHarc to search path2\ of drive A: for source files, achieving
  428. the same result. Note that the drive identifier a: has to be repeated in
  429. both <path> parameters: it will not be stored with the file names.
  430.  
  431. 6.0 COMMANDS
  432.  
  433. Having discussed the syntax of parameters we will now look at what the
  434. commands and switches do.
  435.  
  436. Commands fall into several groups:
  437.  
  438. 6.1  Input commands:
  439.  
  440. Compress files and store them in a named archive which will be created if
  441. it cannot be found.  The extension lzh is assumed: if you specify a
  442. different extension, LHarc will prompt you whether to use it with the
  443. message
  444.  "Extension of archive is not '.' Continue processing? [Y/N]".
  445. Note that LHarc will not attempt to compress the named archive itself so it
  446. does not matter if it is in the same path as the source files.
  447.  
  448. 6.1.1   a       add
  449.  
  450.         adds files to the archive, overwriting existing files with the same
  451.         (extended) name. No prompt is given before overwriting.
  452.  
  453. 6.1.2   m       move
  454.  
  455.         as a but deletes the source files.
  456.  
  457. 6.1.3   u       update
  458.  
  459.         adds files as a but overwrites only those with an earlier date.
  460.         LHarc will declare what file names have been matched but, if none
  461.         of the archived files have an earlier date, will exit without
  462.         further action or warning.
  463.  
  464. 6.1.4   f       freshen
  465.  
  466.         updates files already in an archive with newer versions.
  467.  
  468. 6.1.5   c       compress
  469.  
  470.                 compresses single files for unpacking by AFX
  471.  
  472. Source files may be specified by means of the <home> and <path> parameters.
  473.  
  474. Switches:          l,o,k,u,5  r,c,a,y,b,  x,e,t,w,      m,n,d,h
  475.  
  476. LHarc will normally use lh5 as a compression method; the following switches
  477. select alternatives which you may use if you anticipate your archive being
  478. read by other utilities:
  479.  
  480.                 (commands: a|u|m|f )
  481.  
  482. 6.1.10  /l      Makes Larc archives.
  483.  
  484.          This format, the same as PFXPAK uses, produce archives are longer
  485.          by about 5% but extract much faster.
  486.  
  487. 6.1.11  /o      Uses the lh1 algorithms; ("LHarc 1.13 compatible")
  488.  
  489.         For use with LHarc 1.13  and earlier versions of LHarc and with
  490.         UNLZH and LHXARC.
  491.  
  492. 6.1.12  /k      Compatible headers
  493.  
  494.         LHXarc and early versions of LHarc cannot extract files with the
  495.         extended headers used by LHarc2.x. Using /ok you can make
  496.         compatible headers. (#9.5/k)
  497.  
  498. 6.1.13  /u      Archives files without compression:
  499.  
  500.          if you are adding packed programmes or other compressed files to
  501.          an archive there is little to be gained by attempting further
  502.          compression except that time will be taken in packing and
  503.          unpacking. You can also add a short comment file to an archive
  504.          which can be read by running the archive from the desktop or in a
  505.          text editor.  (#9.5/U)
  506.  
  507. 6.1.14  /5      Forces compression by lh5
  508.  
  509.         LHarc will normally not attempt to compress a small file which
  510.         would be larger as an archive: this switch tells LHarc to compress
  511.         anything using lh5.
  512.  
  513. These switches affect the selection of files to be archived:
  514.  
  515. 6.1.20  /r[-|+|2] (Recursively collect files)   (commands: a|u|m|f)
  516.  
  517.         by default LHarc compresses the files in the directory identified
  518.         by the <home> or <path> parameters, or failing that the current
  519.         directory; it does not look for files in subdirectories.
  520.  
  521.         The /r switch instructs it to search subdirectories
  522.  
  523.         a|u|f|m] /r[+] ARCHIVE
  524.  
  525.         Adds to 'ARCHIVE' all files in the current directory and its
  526.         subdirectories.
  527.  
  528.         a|u|f|m] /r[+] ARCHIVE *.c
  529.  
  530.         Adds to 'ARCHIVE' all files in the current directory and its
  531.         subdirectories with a 'c' extender.
  532.  
  533.         a|u|f|m] /r[+] ARCHIVE doc\*.*
  534.  
  535.         Adds to 'ARCHIVE' all files in the directory doc and its
  536.         subdirectories. The same can be achieved without filenames or
  537.         wildcards in the pathname doc by:
  538.  
  539.         a|u|f|m] /r2 ARCHIVE doc
  540.  
  541.         See (9.5/r)
  542.  
  543. The /r and /r2 switches set the /x switch simultaneously, so that in all
  544. these examples extended file names will be stored, starting at the
  545. beginning of <path>. You may toggle the /x switch off (with /x-) after
  546. using /r to tell LHarc not to store directory names. If LHarc then finds
  547. source files of the same name it will overwrite previously archived files,
  548. after comparing their date stamps if commands u,f are in use.
  549.  
  550. You can use the /r switch to archive files with the same file name by
  551. recursively searching directories.  Thus, with the directory shown below
  552.  
  553.                         |
  554.                        -\-
  555.                         |
  556.                        -TC-STAT.H
  557.                         |
  558.                 -----------------
  559.                 -BIN- -LIB  -INCLUDE
  560.                   |     |       |
  561.                               -SYS-
  562.                                 |
  563.                              -STAT.H
  564.  
  565.           LHarc a /r ARCHIVE stat.h
  566.  
  567. adds two 'stat.h' files, with path names, to 'ARCHIVE': one from the root
  568. directory and the other from the directory \tc\include\sys\.
  569.  
  570. See 6.1.30 for /x.
  571.  
  572. 6.1.21  /c[-|+] (skip time-stamp Comparison)    (commands: e|x|u|f).
  573.  
  574.         overrides the time stamp comparison in u and f.
  575.  
  576.  
  577. 6.1.22  /a[-|+] (allow any Attribute of files)  (commands: e|x|u|f).
  578.  
  579.         This switch tells LHarc to archive/extract files with the
  580.         hidden or system attribute which it would otherwise ignore.
  581.  
  582. 6.1.23  /y      (Archive bit)                   (commands: a|u|m|f)
  583.  
  584.         Only select files with the archive bit set. The archive bit is set
  585.         whenever a file is created or modified. Some back up utilities and
  586.         the /b switch "unset" it so unchanged files can be identified at
  587.         the next back-up.
  588.  
  589.         a -ry *.*
  590.  
  591.         Will archive all files that have been changed since their archive
  592.         bit was unset.
  593.  
  594. 6.1.24  /b                                      (commands: a|u|m|f)
  595.  
  596.         Like y, but the archive bit of the source file is reset.
  597.  
  598.         If you archive a file using this switch, then attempt to repeat the
  599.         process with this or the /y switch no files will be found.
  600.  
  601.  
  602. These switches govern the information stored with the archived files:
  603.  
  604. 6.1.30  /x[-|+] (allow eXtended file names)    (commands: a|u|m|f|e|x)
  605.  
  606.         By default, LHarc stores the file names of source files without the
  607.         names of the directory(s) in which they reside.  This switch tells
  608.         LHarc to include directory names and to extract archived files
  609.         together with stored directory names, creating the necessary
  610.         folders. (#9.5/x)
  611.  
  612.         Example: Suppose you are in the root directory, '\' and you have
  613.         two files 'stat.h' and '\tc\include\sys\stat.h':
  614.  
  615.           LHarc a ARCHIVE stat.h
  616.  
  617.         Adds only the file 'stat.h' from the current (root) directory to
  618.         'ARCHIVE', but
  619.  
  620.           LHarc a ARCHIVE stat.h \tc\include\sys\stat.h
  621.  
  622.         Will cause LHarc to abort with the message "Same names in
  623.         another path", because directory names are normally disregarded
  624.         when storing file names.  However,
  625.  
  626.           LHarc a /x ARCHIVE stat.h \tc\include\sys\stat.h
  627.  
  628.         Adds both files to 'ARCHIVE'. Then,
  629.  
  630.           LHarc e ARCHIVE stat.h
  631.  
  632.         Extracts both 'stat.h' files to the current directory and compares
  633.         their time stamps and if one is newer, then LHarc will prompt you
  634.         with the message "'STAT.H': Already exists. Overwrite? [Y/N]".
  635.  
  636.           LHarc e /x ARCHIVE stat.h
  637.  
  638.         Extracts both 'stat.h' files; one to the current directory and the
  639.         other to the directory \tc\include\sys\. If this directory does
  640.         not exist, then LHarc will prompt you whether to create it.
  641.  
  642. 6.1.31  /e[-|+] (comment)                       (commands: a|u|m|f)
  643.  
  644.         Adds a comment to the archived which will be displayed by the v or
  645.         l /x commands. (#9.5/z)
  646.  
  647. 6.1.32  /t[-|+] (Time Stamp)                    (commands: a|u|m|f)
  648.  
  649.         The archive file is normally given the time and date of its
  650.         creation. This switch sets the time stamp of the archive to that of
  651.         the newest file in the archive.
  652.  
  653.          a /t ARCHIVE file1.ext
  654.  
  655.  
  656. 6.1.33  /w[-|+|<directory_name>] (Working directory) (commands: a|u|m|f)
  657.  
  658.         When  modifying an existing archive LHarc creates temporary files
  659.         in the same directory as the archive, deleting them afterwards.
  660.         (See 7.0) Using the /w switch:
  661.  
  662.         a /wd:\temp ARCHIVE file1.ext file2.ext ...
  663.  
  664.         creates these files in the directory \temp\ on drive D:.  If no
  665.         directory name is specified, temporary files will be created in the
  666.         current directory.
  667.  
  668.         Specifying a ramdisk with this switch can speed up operations
  669.         considerably; it is also useful when you have no room on the disk
  670.         where the archive is.
  671.  
  672.         This switch overrides any working directory specified in an
  673.         environment variable (see 8.0)
  674.  
  675.  
  676. 6.2 Output commands:
  677.  
  678. Expand files from a named archive recreating them on disk: archived files
  679. may be specified using the <path> parameter and the destination for
  680. extracted files by the <home> parameter. If files of the same name are
  681. found LHarc will prompt "Overwrite? [Y/N]". Version l gives the option to
  682. rename.  The contents of self-extracting files with .TOS extenders can be
  683. extracted if the tos extender is included in the archive name.
  684.  
  685. 6.2.1   e,x extract:
  686.  
  687. Switches:          x,p,c,l,u,  m,n,d,h
  688.  
  689. 6.2.10  /x[-|+] (allow eXtended file names)    (commands: a|u|m|f|e|x)
  690.  
  691.         See above (6.1) for this switch
  692.  
  693.         Running LHarc with no command is equivalent to:
  694.  
  695.         e (or x) /x
  696.  
  697.         if you don't want files extracted to directories use /x- (or /x as
  698.         it is a toggle) with no command or use the x or e command.
  699.  
  700. 6.2.11  /p[-|+] (distinguish full Path names) (commands: e|x)
  701.  
  702.         When extracting LHarc will search for the specified files
  703.         regardless of extended filenames. This switch tells LHarc to
  704.         distinguish files by full path name during un-archiving. (#9.5/p)
  705.  
  706.         Example: Suppose your archive 'tc' contains both 'stat.h' and
  707.         'sys\stat.h'.   Then,
  708.  
  709.           LHarc e tc stat.h
  710.  
  711.         Extracts both 'stat.h' files to the current directory and the older
  712.         one will be overwritten by the newer one, whereas
  713.  
  714.           LHarc e /p tc stat.h
  715.  
  716.         Extracts only 'stat.h' to the current directory and ignores
  717.         'sys\stat.h', because its path name is not specified.
  718.  
  719.         If you specify a path names without the /p switch, LHarc will
  720.         extract only those files from your archive, but it will otherwise
  721.         disregard stored directory names.  (If you want to extend file
  722.         names with directory names, use the /x switch.)
  723.  
  724.           e tc sys\stat.h
  725.  
  726.         Extracts only 'sys\stat.h' to the current directory.
  727.  
  728.  
  729. 6.2.12  /c[-|+] (skip time-stamp Comparison)    (commands: e|x|u|f).
  730.  
  731.         /c ARCHIVE [file1.ext file2.ext ...]
  732.  
  733.         When extracting if LHarc finds an existing file with the same name
  734.         in the destination directory it will compare the time stamp of
  735.         the two files, and so some files will be overwritten and some just
  736.         ignored. This switch tells LHarc to overwrite any existing files
  737.         with extracted ones with the same name.
  738.  
  739.  
  740. Two switches are concerned with reading Lzh archives from Unix sources
  741.  
  742. 6.2.20  /s      Convert / to \                          (commands: e|x)
  743.  
  744.         Unix uses / as a directory delimiter instead of /. This switch
  745.         converts / to \ enabling Unix directory paths within extended
  746.         filenames to be interpreted in the ST environment.
  747.  
  748. 6.2.21  /u      Extract Unix 1.0 archives               (commands: e|x)
  749.  
  750.         Used when extracting, this switch jumps over the header-checksum-
  751.         test, so that archives from Unix 1.0 can be extracted. (Unix
  752.         permits longer filenames than MS/GEMDOS.) Use when 'No files' shows
  753.         up during extraction. (Should also be able to extract archives with
  754.         comments). (#9.5/C)
  755.  
  756.         More recent versions of LHarc cope with Unix type filenames by
  757.         truncating them and also support comments, so this switch may be
  758.         redundant, but it is worth remembering if you have trouble or are
  759.         using an older version of LHarc (<2.00).
  760.  
  761.  
  762. 6.3 Internal commands
  763.  
  764. Work on archived files in a named archive; files within the archive may be
  765. specified using the <path> parameter
  766.  
  767. Switches:          x,v(p only),  n,d,h
  768.  
  769. d delete
  770.  
  771.         deletes named archived files which must be identified by the <path>
  772.         parameter; this command will not delete a whole archive by default,
  773.         though it will with *.*. No prompts are given.
  774.  
  775.  
  776. 6.3.1   l (List files in archive)
  777.  
  778.           LHarc l ARCHIVE
  779.  
  780.         Lists the files in 'ARCHIVE' including name, original size, stored
  781.         size, compression ratio, date and time, attributes, compression
  782.         type and CRC check using one line to each file. A '+' before a file
  783.         name indicates that a directory name is stored with the file name.
  784.         (The /x switch or v command display directory names.)
  785.  
  786.         The path parameter will filter the files to be listed
  787.  
  788.           LHarc l ARCHIVE *.c *.h readme.doc
  789.  
  790.         Lists information on all the .C, .H and README.DOC files
  791.         in 'ARCHIVE'.
  792.  
  793. 6.3.2   v (View list of files in archive)
  794.  
  795.           LHarc v ARCHIVE
  796.  
  797.         is equivalent to:
  798.  
  799.           LHarc l /x ARCHIVE
  800.  
  801.         Lists information as l but each file takes two lines: the first for
  802.         the full path name and the second for the rest of the information,
  803.         including comments.
  804.  
  805. 6.3.3   t (Test integrity of archive)
  806.  
  807.           LHarc t ARCHIVE
  808.  
  809.         Tests the integrity of 'ARCHIVE' by running a CRC check on each
  810.         file and comparing the result against the file's stored CRC value.
  811.  
  812. 6.3.4   p show file
  813.  
  814.         displays on screen the contents of files specified
  815.         by means of the <path> parameter.
  816.  
  817. 6.3.40  /v[-|+|2|<path\utility.ext>] (View file by another utility)
  818.  
  819.         LHarc creates an un-archived file 'LHarc.TMP' and displays it using
  820.         the specified utility, usually a text editor or file viewer. You
  821.         must give the full name of the utility with the extension, though
  822.         you may use wildcards such as r*.* to invoke "read.prg" If no
  823.         utility is specified the default is one called "less.ttp". You may
  824.         rename your favourite file viewer accordingly. 'LHarc.TMP' is
  825.         deleted after you have viewed it. The benefit of this is that you
  826.         can use all the features of the utility to scroll through the text,
  827.         save, print, search, etc.
  828.         (#9.5/v)
  829.  
  830.         LHarc p /vread.prg ARCHIVE.LZH file1.ext
  831.  
  832.         Invokes READ.PRG for paged display of 'file1.ext' to the screen,
  833.  
  834.         LHarc p /v2 /vread.prg ARCHIVE.LZH file1.ext
  835.  
  836.         as before but /v2 suppresses the output of file names or path
  837.         names.  This option is provided for viewing binary files with a
  838.         dump utility.
  839.  
  840. Output from l,v and p , including LHarc's own messages, may be redirected
  841. to a file by >"filename", to the printer (parallel port) by >prn: and to
  842. the serial port by >aux:  The final colon is essential, otherwise LHarc
  843. will direct output to a file called "prn". Using /d will suppress
  844. LHarc's messages but not the filename. (#9.4)
  845.  
  846. You may also append to a file using >>, but the process is so slow I
  847. recommend you only use this if you are about to take a holiday. If you use
  848. MORTIMER's print spooler you can achieve the same effect by directing
  849. output to prn: or aux: with the printer off-line, and then retrieving the
  850. contents of the spooler into the editor using 'Ctrl-X'.
  851.  
  852. The screen display with these commands may be paused by 'Ctrl-S' and
  853. resumed with 'Ctrl-Q'.
  854.  
  855.  
  856. 6.4 The following switches apply to most commands:
  857.  
  858. 6.4.1   /m[-|+] (no Message for query)
  859.  
  860.         [<command>] /m ARCHIVE [file1.ext file2.ext ...]
  861.  
  862.         Before altering files or directories, or before creating
  863.         an archive with a extension other than LZH, LHarc will query you
  864.         with messages like "Overwrite? [Y/N]". This switch suppresses these
  865.         messages and tells LHarc to proceed as if "y" is typed in.
  866.  
  867. 6.4.2   /n[-|+] (No Indicator)
  868.  
  869.         Suppress progress display ****... when archiving and de-archiving.
  870.         This display is on even when output is redirected to printer or
  871.         file.
  872.  
  873. 6.4.3   /d[-|+] (suppress screen display)
  874.                          (#9.5/q- do not use with version 2.20 or newer!)
  875.         LHarc will write nothing to the screen while working.
  876.  
  877. 6.4.4   /h[-/+] (hold screen)
  878.  
  879.         With /h LHarc waits for a key before returning to desktop
  880.         enabling messages to be read.
  881.  
  882. 6.4.5   /q      Quick compression
  883.  
  884.         Not currently supported
  885.  
  886. There is also an as yet unimplemented command s to create self extracting
  887. archives.
  888.  
  889. 7.0 TEMPORARY FILES
  890.  
  891. When creating or amending an archive LHarc creates temporary files in the
  892. same directory as the archive, unless told by means of the /w switch to
  893. write them elsewhere. These are:
  894.  
  895.         LHarc.)1(       Original archive, renamed.
  896.         LHarc.)2(       Work file used to create new archive.
  897.  
  898.         If a file with one of these file names already exists in the working
  899.         directory, then the behaviour of LHarc is unpredictable.
  900.  
  901. If the process is aborted by 'Ctrl-C' or through an error the original file
  902. can usually be recovered by renaming LHarc.)1(.    LHarc.)2( may also
  903. be usable though the last file written to it is likely to be incomplete.
  904.  
  905.         LHarc.TMP       Work file created for viewing by another utility.
  906.  
  907. 8.0 SHELLS AND COMMAND LINE INTERFACES
  908.  
  909. Shells make using LHarc easier by allowing choices to be set up from a
  910. menu though they may not enable all the facilities of LHarc to be used and
  911. may become out of date as LHarc itself is amended. ARCshell 3.1 gives good
  912. support to LHarc but is itself quite daunting to understand as a result.
  913. Other shells give more limited support.
  914.  
  915. Command line interfaces allow LHarc to be called from their command line
  916. and may allow the use of batch files or the recall of commands by
  917. scrolling back through the command list.
  918.  
  919. You may also set LHarc's default switches with the environment variable
  920. 'LHarc':
  921.  
  922.           SET LHarc=/we: /r
  923.  
  924.         will set drive E: as the working directory and archive all
  925.         files in recursive mode.
  926.  
  927. You may also specify LHarc's working directory with the environment
  928. variable 'TMP':
  929.  
  930.           SET TMP=E:
  931.  
  932.         but the /w switch will override this setting.
  933.  
  934.         Result Codes
  935.  
  936.         LHarc returns the following result codes to the parent process:
  937.  
  938.         0   Normally finished.
  939.  
  940.         1   Process finished with nonexistent file names ignored
  941.         during archiving or CRC error occurred during
  942.         un-archiving.
  943.  
  944.         2   Process terminated by fatal error; no archive created
  945.         or files moved.
  946.  
  947.         3   Unable to write temporary files into the archive. Work
  948.         file renamed to 'LHarc.)2(' and original archive
  949.         deleted.  Try renaming LHarc.)2( as your archive,
  950.         although it might be damaged.
  951.  
  952.  
  953.  
  954. 9.0 VERSION 2.20 and newer versions
  955.  
  956. The help screen, displayed by pressing <return> at the command line is as
  957. below:
  958. -------------------------------------------------------------------------------
  959.  
  960.  
  961.    LHarc Version 2.99 junior (Atari) - dedicated to an unknown genius
  962.    (c) Haruyasu Yoshizaki, 1988-1989, Grunenberg, Mandel, 1994
  963.  ================================================================ Jan 06 1994 =
  964.  Syntax: LHarc [<command>] [{{-|/}{<switchs>[-|+|0-3|<options>]}}...] <archive>
  965.          [{<Drive>:[\]}|{<Base-Directory>\}] {[&|&-|~] <Paths/Files> ...}
  966.  ------------------------------------------------------------------------------
  967.   <Command>
  968.       a: Add files to archive           u: Update newer files to archive
  969.     f,r: Freshen/Re-construct archive   m: Move files to archive (means 'a -d')
  970.       d: Delete files from archive    e,x: Extract files from archive
  971.       p: DisPlay files on screen      l,v: List/Verbose list of archive
  972.       t: Test integrity of archive      c: Compress files in AFX-format
  973.  ------------------------------------------------------------------------------
  974.   <Switchs> (WARNING: The meaning of the d-switch has been completely changed)
  975.       r: Recursive expansion of dirs    w: Specify work-directory
  976.       x: Extend filenames               m: No Message at query
  977.       p: Distinguish pathnames          f: Include folders in archive
  978.       c: Skip time-comparison           i: Ignore attributes
  979.       a: Any attribute                  v: Display with external tool
  980.       n: Set process-indicator          h: Hold screen after finishing
  981.       t: Time-stamp of archive          y: Only files with 'changed' attribute
  982.       b: Clear 'Changed'-attribute      l: Use Larc compatible method
  983.       q: Suppress all messages (quiet)  o: Use LHarc 1.13 compatible method
  984.       u: Store - don't compress files   k: Header-level (0-2)
  985.       e: Include file-comments          z: Include archive-comment
  986.       d: Delete files after command     C: No crc-check during extraction
  987.       g: Extract archive in folder      j: Exclude empty files
  988.       5: Force LHarc 2.0x archive (lh5) 4: Store in Larc compatible method
  989.       s: Convert backslashs to slashs   P: Process-Indicator-Character
  990.       L: Limit memory-allocations       S: Case-Sensitive filenames
  991.       M: Maximum file-size              N: Only files newer than date ddmmyy
  992.       U: Store files uncompressed       R: Rename Unix-Files
  993.       I: Compress files to directory    B: Retain backup copy of archive
  994.       A: Add if file is not in archive  D: Delete if file is not specified
  995.       W: No wildcard-matching           X: Make relativ pathnames
  996.       Y: Encryption                     K: Acoustic signal after finishing
  997.       ?: Display helpscreen
  998.   path;\ Make relativ pathnames        ~,! Exclude files
  999.      &,@ Get file-list from file     &-,@- Get file-list from standard input
  1000.  ==============================================================================
  1001.   (You'll find a more detailed description in the documentation 'MANUAL.ENG')
  1002.  
  1003.   Yoshizaki  : Nifty-Serve  PFF00253
  1004.                oASCII-pcs   pcs02846
  1005.   Grunenberg : Christian Grunenberg @ S2 (Mausnet)
  1006.                Christian_Grunenberg@S2.maus.de (Inter-/Usenet)
  1007.  
  1008.  LHarc is a freeware-program. Freeware means that you can freely copy, test
  1009.  and use this programm. If you are using LHarc regularly, you should support
  1010.  the further development by sending me a suitable donation (about $15). Thanks.
  1011.  
  1012.  Address:
  1013. ----------
  1014.     Christian Grunenberg
  1015.     Traminerweg 5
  1016.     71717 Beilstein
  1017.     Germany
  1018.  
  1019. -------------------------------------------------------------------------
  1020. The principal differences from older versions are as follows:
  1021.  
  1022. 9.1 Switches must come after the command before any name or path
  1023.     parameters.
  1024.     "0" and "1" usually have the same effect as "+" and "-".
  1025.     Without any of these characters the switch is turned on, no longer
  1026.     toggled.
  1027.  
  1028. 9.2 Unix wildcards may be used; as well as * and ?,
  1029.  
  1030.        [a-m] sets a range:
  1031.                 [a-m]*.* selects all files with names with initial letters
  1032.                 between a and m
  1033.        [a|m] or [am] sets a choice:
  1034.                 [a|m]*.* selects all files with initial letters a or m.
  1035.                 [am]*.* does the same and
  1036.                 [a-mv]*.* selects all files with names with initial letters
  1037.                 between a and m and those beginning with v
  1038.         [^a] excludes:
  1039.                 [^a-m]*.* selects all files with names with initial letters
  1040.                 NOT between a and m.
  1041.         As an alternative you can use ! or ~ to exclude files thus:
  1042.                 !*.ttp,[am]*.* excludes all .ttp files and all files
  1043.                 beginning with a or m
  1044.  
  1045. In most circumstances file/path names and wild cards may be chained
  1046. together with commas ie:
  1047.  
  1048.         "folder\*.ttp,*.prg"
  1049.  
  1050. selects all files with ttp and prg extenders in "folder" and has the same
  1051. effect as
  1052.  
  1053.         "folder\*.ttp folder\*.prg"
  1054.  
  1055. 9.3 <home> no longer works in input commands; files for archiving can only
  1056. be set by the <path> parameter. If extended filenames are set by the /x or
  1057. /r switches the whole path will be stored.  The new /I switch can be used
  1058. to force all files into a single directory with subdirectory names.
  1059.  
  1060. To store subdirectories relative to, ie starting from the end of the path
  1061. specified, for which the <home> parameter would have been used as in:
  1062.  
  1063.         a ~ /hr ~ path1\arc ~ a:path2\ ~ path3\*.prg
  1064.  
  1065. you may open the window a:path2\ and add the drive name 'a:' to the <path>
  1066. parameter as described in section 5.6:
  1067.  
  1068.         a ~ /hr ~ path1\arc ~ a:path3\*.prg
  1069.  
  1070. or use the right button to launch LHarc from an inactive window.
  1071.  
  1072. Alternatively, from version 2.22 on, the switch /X (store relative to
  1073. the given paths) suppresses the path name from the archive, while storing
  1074. subdirectory names
  1075.  
  1076.         a ~ /hrX ~ path1\arc ~ a:path3\*.prg
  1077.  
  1078. or inserting a ';' in the path suppresses the part of the path before the
  1079. semi-colon, ie
  1080.  
  1081.     a ~ /hr ~ path1\arc ~ e:\path2\folder1;\folder2\
  1082.                           ^^^^^^^^^^^^^^^^
  1083.                           | This part of the path won't be stored !
  1084.  
  1085. 9.4 Redirection: '>>' is now officially supported as well as '>'.
  1086. Indirection using '<' to read instructions from a file is not yet
  1087. implemented, but using '@' or '&' allows a list of files to be read in so
  1088. the command line
  1089.  
  1090.     v /h arc  &comm
  1091.  
  1092. will view the archive "arc" listing only the files named in the file "comm".
  1093. Final colons are no longer needed ">prn" and ">aux" will now work.
  1094.  
  1095. 9.5 switches - only changes from 2.01 are described
  1096.  
  1097. /r[-|+|2]       r2 is now acknowledged to be redundant; it will do the same
  1098.                 as /r.
  1099.  
  1100. /f[-|+|2|3]     includes folders in archives as files, not just as part of
  1101.                 extended file names, apparently for Unix compatibility.
  1102.  
  1103.                 Version 2.22 or newer:
  1104.                 /f2 Wildcard-Matching also when including folders.
  1105.                 /f3 as /f2, but only compress folders.
  1106.  
  1107. /g[-|+]         creates a folder with the archive name and writes output
  1108.                 files to it (as UNLZH does)
  1109.  
  1110. /x[-|+|2|3]     the new options 2,3 force initial backslashes,
  1111.                 representing the root directory, on and off respectively
  1112.  
  1113. /p[-|+]         as before
  1114.  
  1115. /I(dir\)        Stores all archived files with the extended name
  1116.                 'dir\filepath\file.ext'. This switch sets /x3.
  1117.                 Setting the switch /x0 will stripp the original filepath.
  1118.  
  1119. /n[-|+|2|3]     Process indicators s before
  1120.                 /n2 shows progress a % instead of a row of *
  1121.                 /n3 shows a rotating /
  1122.  
  1123. /q[-|+|2]       use this instead of /d to suppress all screen output;
  1124.  
  1125.                 Version 2.22 or newer:
  1126.                 /q2 only suppresses the title output.
  1127.                 see /d below
  1128.  
  1129. /d[-|+]         deletes existing files (like the m command) but also
  1130.                 deletes them from archives when extracting
  1131.  
  1132. /D[-|+]         Version 2.32 or newer:
  1133.                 Will delete all files in the archive not specified by
  1134.                 the user or found by LHarc.
  1135.  
  1136. /A[-|+]         Will only add a file if the file is not already in the
  1137.                 archive.
  1138.  
  1139. /e[-|+]         As before
  1140.  
  1141. /z[-|+]<file>   Like /e, but the comment relates to the archive as a whole
  1142.                 not to individual files.
  1143.  
  1144.                 Version 2.22 or newer:
  1145.                 If <file> is specified, the comment is read from <file>,
  1146.                 not from standard input.
  1147.  
  1148. /m[-|+|2|3]     Version 2.22 or newer:
  1149.                 /m2 suppresses only the message 'Create folder ?'
  1150.                 /m3 suppresses only the message 'Overwrite file ?'
  1151.  
  1152. /Y<key>         Version 2.3:
  1153.                 Encrypts files during compression using <key> as a pass-
  1154.                 word and decrypts files during extraction.
  1155.  
  1156. /t
  1157. /w              All as before
  1158. /c
  1159.  
  1160. /C[-|+]         Omits the checksum test when extracting, speeding up the
  1161.                 process and allowing corrupt files to be expanded.
  1162.  
  1163. /v[-|+|2|3]<file>
  1164.                 Less.ttp is no longer taken as a default; you must write
  1165.                 something like "/vd:\view.ttp". /v2 suppresses archive
  1166.                 and file names from the output and /v3 acts like /qv2
  1167.                 suppressing all screen output but the file contents
  1168.                 themselves. As before a separate switch /v2,3 is needed for
  1169.                 these options, following the first one.
  1170.  
  1171. /h              As before
  1172.  
  1173. /N<ddmmyy>      Only selects files later than the date ddmmyy.
  1174.  
  1175. /i[-|+|2|3]     Extracts files, ignoring all attributes and with the
  1176.                 current date and time.
  1177.  
  1178.                 Version 2.22 or newer:
  1179.                 /i2 only current date and time.
  1180.                 /i3 ignoring all attributes.
  1181.  
  1182. /y              As before
  1183.  
  1184. /b              Resets only the changed-attribute
  1185.  
  1186. /B              Retains a back-up copy of an amended archive with the
  1187.                 extender.bak, overwriting any previous .bak file with the
  1188.                 same name. Works with input commands and when the /d switch
  1189.                 is set.
  1190.  
  1191. /l[-|+|2]       Version 2.3
  1192.                 /l2 force Larc (lh0) compression even if the archive will
  1193.                 get longer (disables /U)
  1194.  
  1195. /o[-|+|2]       Version 2.3
  1196.                 /o2 force LHarc (lh1) compression even if the archive will
  1197.                 get longer (disables /U)
  1198.  
  1199. /5[-|+|2]       Forces lh5 mode on all files including small files as
  1200.                 before and also archive files which would otherwise be
  1201.                 stored without compression (see /u). Creates smallest archives
  1202.                 possible.
  1203.  
  1204.                 Version 2.3
  1205.                 /52 force LHA (lh5) compression even if the archive will
  1206.                 get longer (disables /U)
  1207.  
  1208. /W[-|+]         No wildcard-matching except to exclude files and with
  1209.                 switch /U (Version 2.22 or newer)
  1210.  
  1211.                 Version 2.32
  1212.                 /W2 disable multiple files like 'file1.ext,file2.ext'
  1213.  
  1214. /X[-|+]         Store paths relative to specified paths (see 9.3.)
  1215.                 (Version 2.22 or newer)
  1216.  
  1217. /K[0-3]         Acoustic signal after finishing (up to 3 seconds)
  1218.                 (Version 2.22 or newer)
  1219.  
  1220. /k[0-2]         Allows the type of header to be set:
  1221.                 ie levels
  1222.                 /k0 or /k:      (compatible as with the old /k), /e and /z
  1223.                                 are disabled
  1224.                 /k1:            (standard)
  1225.                 /k2             (extended)
  1226.  
  1227. /u              As before but versions newer than 2.20 will not by default
  1228.                 compress archive files with the extenders
  1229.                 ARC/ARJ/LZH/LZS/LHA/TAZ/ZOO/ZIP/TGZ/GZ/GIF/JPG
  1230.  
  1231. /U[-|+]<filespec(s)>
  1232.                 Allows only specific file(types) identified by wildcards to
  1233.                 be saved without compression, others are compressed.
  1234.  
  1235.                 Multiple specifications can be chained using commas:
  1236.  
  1237.                         /U*.arc,*.lzh,readme
  1238.  
  1239.                 This switch is meaningless with /5,/Y,/52,/l2 and /o2
  1240.  
  1241. /4[-|+]         saves without packing but in Larc compatible format. (lz4)
  1242.  
  1243. /P<chars>       Allows the process indicators * and . to be changed.
  1244.  
  1245. /L[0-2]         Limits the memory used by LHarc, mainly for multi-tasking.
  1246.                 /L0 - use 50% of available memory (max. 800 KByte)
  1247.                 /L1 - use only about 250-350 memory
  1248.                 /L2 - use all memory available (max. 1.9 MByte)
  1249.  
  1250. /M<size>        Sets a limit to the size of file to be archived or extracted
  1251.  
  1252. /S[-|+|2]       Allows LHarc to distinguish always between upper and lower
  1253.                 case filenames
  1254.  
  1255.                 Version 2.22 or newer:
  1256.                 /S2 - no case-sensitivity
  1257.  
  1258. /R              LHarc converts Unix filenames automatically: this option
  1259.                 allows the user to override LHarc's proposals.
  1260.  
  1261. /j              ignores empty files
  1262.  
  1263.  
  1264. 9.6 New environment-variables
  1265.  
  1266. TMPDIR      same as TMP
  1267.  
  1268. UNPACKED    same as switch /U
  1269.  
  1270. COLUMNS     number of columns the screen is able to display
  1271.  
  1272. LHARCPAR    if set, all arguments are printed before executing the command
  1273.             (Version 2.22 or newer)
  1274.  
  1275. ARCTEMP     same as TMP (Version 2.3 or newer)
  1276.  
  1277. LHA         same as LHARC (Version 2.3 or newer)
  1278.  
  1279. LHARCDIR    same as parameter 'DRIVE/HOME-DIRECTORY' (see 5.5)
  1280.             (Version 2.31 or newer)
  1281.  
  1282.  
  1283. 9.7 Return-Codes (Version 2.22 or newer)
  1284.  
  1285.     Bit 0  (1)    - Bad Table
  1286.     Bit 1  (2)    - CRC Error
  1287.     Bit 2  (4)    - Write-Error
  1288.     Bit 3  (8)    - Read-Error
  1289.     Bit 4  (16)   - Can't rename file or create folder
  1290.     Bit 5  (32)   - Can't copy/create temp. archive
  1291.     Bit 6  (64)   - Not implemented command
  1292.     Bit 7  (128)  - No LHarc-archive/no archivname
  1293.     Bit 8  (256)  - File not found/No file specified
  1294.     Bit 9  (512)  - Not enough memory
  1295.  
  1296.     Version 2.31 or newer:
  1297.     Bit 10 (1024) - Garbage found and skipped
  1298.     Bit 11 (2048) - Garbage found at the archive-end
  1299.  
  1300.  
  1301. 9.8 Temporary files
  1302.  
  1303. LHA)(T)(.XXX    original archive and work files
  1304. __temp__.lzs    workfile during AFX compression (Version 2.22 or newer)
  1305.  
  1306.  
  1307. ACKNOWLEDGMENTS: the material for this document was obtained and in some
  1308. cases quoted from Theo Runia's MAN.ENG and Thomas Quester's MAN.DEU and
  1309. related sources with additional material for versions newer than 2.20 from
  1310. Christian Grunenberg.
  1311.  
  1312. If you have any comments or corrections please contact:
  1313.  
  1314. Alan Kennedy 107 Fernside Road London SW12 8LH
  1315.  
  1316. © Alan Kennedy  12/08/93
  1317.  
  1318. This document may be freely distributed on disk but may not be published in
  1319. printed form without the author's permission.
  1320.  
  1321.